package pe.org.jhsystem.consola.aleatorio;

import java.util.Random;

/**
 *
 * @author jhuamanv
 */
public class AleatorioMain {

    public static void main(String[] args) {
        Random r = new Random();
        System.out.println(r.nextInt());
        int limite=100000000;
        String retorno = "";
        boolean flag = true;
        while(flag){
            retorno = String.valueOf(r.nextInt(limite+1));
            if(retorno.length()!=8) flag=true;
            else flag=false;
        }
        System.out.println(retorno);
    }

}
